home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
-
- # This file edits gateway distribution files
- # Its primary goal is to set correct directory names
-
- # IMPORTANT !
- # Configure these variables to
- # where your HTTPD stuff is located
- # and where your news archiving directory is
- HTTPD_HOME=`pwd`
- HTTPD_NEWSHOME=`pwd`/news
-
- # Location of glimpse and glimpseindex, options for glimpseindex
- GLIMPSE_LOC=`which glimpse`
- GLIMPSEIDX_LOC=`which glimpseindex`
- GLIMPSEIDX_OPT=
-
- # perl on your machine
- PERL=`which perl`
-
- # gunzip on your machine
- gunzip=`which gunzip`
-
- # server administrator name
- adminname="Paul Klark"
- # server administrator e-mail, prepend @ with \
- adminaddress="paul\@cs.arizona.edu"
-
- case $# in
- *) ;;
- #*) echo "Usage: $0";
- # exit ;;
- esac
-
- cd $HTTPD_HOME
- tmpfile=/tmp/conf$$
- cat >$tmpfile <<EOM
- s|^(\\\$?)HTTPD_HOME *=.*|\1HTTPD_HOME="$HTTPD_HOME" ;|;
- s|^\#\!/usr/local/bin/perl|\#\!$PERL|;
- s|^(\\\$?)HTTPD_NEWSHOME *=.*|\1HTTPD_NEWSHOME="$HTTPD_NEWSHOME" ;|;
- s|^(\\\$?)GLIMPSE_LOC *=.*|\1GLIMPSE_LOC="$GLIMPSE_LOC" ;|;
- s|^(\\\$?)GLIMPSEIDX_LOC *=.*|\1GLIMPSEIDX_LOC="$GLIMPSEIDX_LOC" ;|;
- s|^(\\\$?)adminname *=.*|\1adminname="$adminname" ;|;
- s|^(\\\$?)adminaddress *=.*|\1adminaddress="$adminaddress" ;|;
- s|^(\\\$?)gunzip *=.*|\1gunzip="$gunzip" ;|;
- s|^(\\\$?)GLIMPSEIDX_OPT *=.*|\1GLIMPSEIDX_OPT="$GLIMPSEIDX_OPT" ;|;
- EOM
- files=`cat $HTTPD_HOME/wwwlib/filenames.list`
- for i in $files
- do
- if [ -f $i ] ; then
- perl -pi $tmpfile $i
- fi
- done
- rm -f $tmpfile
- #cd $HTTPD_HOME/wwwlib;cmd="$CC -o cvtwww cvtwww.c";echo $cmd;$cmd
-